import { staticPlugin } from '@elysiajs/static';

import { config } from '@/config';

/**
 * 创建静态文件配置
 */
export function createStaticConfig() {
  return staticPlugin({
    assets: config.static.assetsPath,
    prefix: config.static.prefix,
  });
}
